{% extends '@WebsiteBundle/layout/layout.html.twig' %}
{% block seo_title %}微信支付{% endblock %}

{% block head_stylesheets %}
	{{ parent() }}
	{{ encore_entry_link_tags('website_order_wxpaycode') }}
{% endblock %}

{% block body_javascript %}
	{{ parent() }}
	{{ encore_entry_script_tags('website_order_wxpaycode') }}
{% endblock %}

{% block body_main %}
	{{ parent() }}

	<div class="page">
		{{ render(path('app_header', {"route":route})) }}
		<div class="page-wrapper">
			<div class="page-body">
				<div class="container-xl">
					<div class="row row-deck row-cards">
						<div class="col-lg-4"></div>
						<div class="col-lg-4">
							<div id="qrcode"></div>
						</div>
						<div class="col-lg-4"></div>
					</div>
					<div class="row row-deck row-cards mt-2">
						<div class="col-lg-4"></div>
						<div class="col-lg-4">
							请用微信扫描二维码完成支付
						</div>
						<div class="col-lg-4"></div>
					</div>
				</div>
			</div>
		</div>
		{{ render(path('app_footer')) }}
	</div>
{% endblock %}

{% block body_javascript %}
	{{ parent() }}
	<script>
  var code_url = '{{ body["code_url"] }}';
  var app_order_wxpayCheck = "{{ path('app_order_wxpayCheck', {orderNo:orderNo}) }}";
  var app_order_paysuccess = "{{ path('app_order_paysuccess', {orderNo:orderNo}) }}";
	</script>
{% endblock %}
